<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">View Faculties</a>
            </li>
        </ul>
    </div>
<div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2>All faculties</h2>

                    <div class="box-icon">
<!--                        <a href="#" class="btn btn-setting btn-round btn-default"><i class="glyphicon glyphicon-cog"></i></a>-->
                        <a href="#" class="btn btn-minimize btn-round btn-default"><i class="glyphicon glyphicon-chevron-up"></i></a>
<!--                        <a href="#" class="btn btn-close btn-round btn-default"><i class="glyphicon glyphicon-remove"></i></a>-->
                    </div>
                </div>
                <div class="box-content">
                    <table class="table">
                        <thead>
                            <tr>
                                <!--<th>Enroll No</th>-->
                                <th>Name</th>
                                <th>Email</th>
                                <th>Designation</th>
                                <th>Contact</th>
                                <th>Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <%
                            
                            System.out.println(request.getSession().getAttribute("faculty_viewlist") + " : Print Success");
                                
                            %>

                            <c:forEach items="${sessionScope.faculty_viewlist}" var="faculty">
                                <tr id="tr_${faculty.id}">
                                    
                                    <td class="center" id="td_fname_${faculty.id}">${faculty.fname}</td>
                                    <td class="center" style="display:none" id="td_mname_${faculty.id}">${faculty.mname}</td>
                                    <td class="center" style="display:none" id="td_lname_${faculty.id}">${faculty.lname}</td>
                                    <td class="center" style="display:none" id="td_gender_${faculty.id}">${faculty.gender}</td>
                                    <td class="center" id="td_email_${faculty.id}">${faculty.email}</td>
                                    <td class="center" style="display:none" id="td_address_${faculty.id}">${faculty.address}</td>
                                    <td class="center" style="display:none" id="td_f_state_${faculty.id}">${faculty.f_state}</td>
                                    <td class="center" style="display:none" id="td_city_${faculty.id}">${faculty.city}</td>
                                    <td class="center" style="display:none" id="td_dateofbirth_${faculty.id}">${faculty.dateofbirth}</td>
                                    <td class="center" style="display:none" id="td_dateofbirth_${faculty.id}">${faculty.dateofbirth}</td>
                                    <td class="center" id="td_fname_${faculty.id}">${faculty.designation}</td>
                                    <td class="center" id="td_contact_${faculty.id}">${faculty.contact}</td>
                                    <td class="center">
                                        <a href="#myModal" class="btn-info btn-setting view_anchor" id="view_${faculty.id}" ><button class='label-success label label-default'>View</button></a>
                                        <a href="EditFacultyAction.do?id=${faculty.id}"><button class="label-success label label-default">Edit</button></a> 
                                        <button class="label-success label label-default delete_button" id="delete_${faculty.id}">Delete</button>
                                    </td>
                                </tr>
                            </c:forEach>

                        </tbody>
                    </table>
                    <ul class="pagination pagination-centered">

                        <c:forEach begin="1" end="${sessionScope.iteration}" var="i">
                            <li class="active">
                                <a href="ViewFacultyAction.do?id=<c:out value="${i}"></c:out>">${i}</a>
                                </li>
                        </c:forEach>


                    </ul>
                </div>
            </div>
        </div>
        
   

                            </div>

        